boot.bin:boot.asm
	set PATH=$(APOLLOCYGWINDIR)\bin;$(APOLLOTOOLSDIR);$(PATH)
	bash --login -c "nasm '$(MAKEDIR)\boot.asm' -o '$(MAKEDIR)\boot.bin' -w+error"
#	"apollo-tools-bootinstall -A -D $(APOLLODISKPATH) 1 boot.bin"

bootbbs.sys:bootbbs.asm
	set PATH=$(APOLLOCYGWINDIR)\bin;$(APOLLOTOOLSDIR);$(PATH)
	bash --login -c "nasm '$(MAKEDIR)\bootbbs.asm' -o '$(MAKEDIR)\bootbbs.sys' -w+error"
	copy bootbbs.sys $(APOLLOVIRTUALDISK):\system\boot\bootbbs.sys
	apollo-tools-delay 2000

kernel.sys:kernel.asm
	set PATH=$(APOLLOCYGWINDIR)\bin;$(APOLLOTOOLSDIR);$(PATH)
	bash --login -c "nasm '$(MAKEDIR)\kernel.asm' -o '$(MAKEDIR)\kernel.sys' -w+error"
	copy Kernel.sys $(APOLLOVIRTUALDISK):\system\boot\kernel.sys
	apollo-tools-delay 2000

all:boot.bin bootbbs.sys kernel.sys